package com.frinder.hadoop.hbase.original;

import lombok.extern.slf4j.Slf4j;

/**
 * @author frinder
 * @date 2018/6/30
 * @Description: 此例需要 resource 目录下的 hbase-site.xml 文件
 */
@Slf4j
public class HBaseTest {

    public static void main(String[] args) throws Exception {
        HBaseHelperProxy helper = new HBaseHelperProxy();
        helper.createTable("t_user", "col1", "col2");
        helper.getTables();
        helper.insertRow("t_user", "1", "col1", "name", "Jack");
        helper.insertRow("t_user", "1", "col2", "age", "28");
        helper.scanData("t_user", "1", "10");
        helper.getRowData("t_user", "1");
        helper.getColData("t_user", "1", "col1", "name");
//        helper.deleteCol("t_user", "1", "col1", "name");
//        helper.deleteRow("t_user", "1");
//        helper.getRowData("t_user", "1");
    }

}
